home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / system / danix201.zip / WC.1 < prev    next >
Text File  |  1994-01-09  |  840b  |  35 lines

  1. WC(1)                Danix Utilities                WC(1)
  2.  
  3. NAME
  4.     wc - count characters, words, or lines
  5.  
  6. SYNOPSIS
  7.     wc [-lwct] files ...
  8.  
  9. DESCRIPTION
  10.     wc counts the number of characters, words, and lines in the
  11.     file in the file list.  If more than one file is given, a
  12.     total is printed at the end.  If the file list is empty, or
  13.     a '-' is encountered in the file list, input is taken from
  14.     standard input.
  15.  
  16.     -l Give a line count
  17.  
  18.     -w Give a word count.  Words are defined as any sequence of
  19.        printable characters.
  20.  
  21.     -c Give a character count
  22.  
  23.     -t Print only the totals for all files
  24.  
  25.     Default is -lwc
  26.  
  27. EXAMPLES
  28.     wc -l files ...
  29.         prints out the number of lines in each file and prints
  30.         a sum total
  31.     <command> | wc -l file -
  32.         prints out the number of lines in the given file as well
  33.         as the standard input, and a sum total
  34.  
  35.